package com.oauth.resp;

public enum ResultCode {

	OK(2000, "OK"),
	BAD_REQUEST(4000, "OK"),
	ERROR(5000, "ERROR"),
	SQL_ERROR(5050, "ERROR"),
    HANDLE_ERROR(5060, "ERROR"),
	
    UNABLE_ACOUNT(1000, "账户不可用..."),
    UNABLE_LOGIN(1001, "账户未授权..."),
    
    CHECK_FAILED(1010, "检验失败..."),
    
    UNABLE_CLIENT(1011, "平台未授权..."),
    
    UNABLE_SECRET(1020, "解密失败...");
    
	private Integer code;
	private String msg;
	
	private ResultCode(int code, String msg){
		this.code = code;
		this.msg = msg;
	}
	
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
